# name : proc power prop single
# key : power.prop.freq.single
# contributor: Shuguang Sun
# --
proc power;
onesamplefreq
/* test and power */
test = ${1:$$(yas-choose-value '("EXACT" "ADJZ" "EQUIV_ADJZ" "EQUIV_EXACT" "EQUIV_Z" "Z"))}
method = ${2:$$(yas-choose-value '("EXACT" "NORMAL"))}
alpha = 0.025
sides = 1
power = ${3:0.9}
/* CI and probwidth */
/* ci = ${4:$$(yas-choose-value '("EXACT" "CLOPPERPEARSON" "CP" "AGRESTICOULL" "AC" "JEFFREYS" "WALD" "WALD_CORRECT" "WILSON" "SCORE"))}*/
/* halfwidth=number-list */
/* probwidth=number-list */
nullproportion = ${5:0.2}
proportion = ${6:0.3}
ntotal = .
/* noninferiority or superiority */
/* margin = 0.1 */
/* equivalence */
/* equivbounds=grouped-number-list */
/* lower = 0.2 */
/* upper = 0.4 */
;
run;
